/*###################################################################*
#
# MP (Mitchell Pell) Base - CrossPlatform Base Utilities.
# Copyright (C) 2014  Mitchell Pell
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
####################################################################*/
#ifndef GL_TCP_ERROR_H
#define GL_TCP_ERROR_H

#include <exception>
using namespace std;

namespace mpgl_engine{ namespace application{ namespace net {

	/*!----------------------------------------------------------------
	*	@class		TcpError
	*	@brief		
	*
	*	@author		Mitchell Pell
	*	@date		01/04/2014
	*	@version	1.0
	*
	*	@revisions	Revision History:
	*
	*					- Version 1.0 01/04/2014
	*						-# Initial Make
	*
	-----------------------------------------------------------------*/
	class TcpError : public std::exception
	{
	public:
		/*!  */
		virtual const char* what() const throw()
			{return m_error;}
		/*!  */
		TcpError(){ m_error = "Tcp Error!"; }
		/*!  */
		TcpError(const char* error){ m_error = error; }
	protected:
		/*!  */
		const char*	m_error;
	};
}}}

#endif